package com.yoki.cloud.common.model;

import lombok.Data;

import java.util.List;

/**
 * @author kissy
 * @Description: 统一分页封装
 * @date 2017/10/24 下午4:48
 */
@Data
public class PageResult<T> extends InvokeResult<T> {

    private int pageNum;

    private int current;

    private int pageSize;

    private long total;

    private List<T> pageData;

    public void setPageNum(int i) {
        this.pageNum = i;
        this.current = i;
    }

    public void setCurrent(int i) {
        this.pageNum = i;
        this.current = i;
    }

}